﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows.Documents;

namespace Tycho.Peyote {
    class GlyphHandleAdorner : Adorner {
        private GlyphControl Glyph;
        private GlyphHandleControl Handle;

        public GlyphHandleAdorner (GlyphControl glyph) : base (glyph) {
            Glyph = glyph;

            Handle = new GlyphHandleControl ();
        }

        protected override int VisualChildrenCount {
            get {
                return 1;
            }
        }

        protected override System.Windows.Media.Visual GetVisualChild (int index) {
            if (index == 0) {
                return Handle;
            } else {
                return base.GetVisualChild (index);
            }
        }
    }
}
